/**
*pavennt
* Call menu
*
*/
function call_menu_chinh(){
        ddsmoothmenu.init({
    	mainmenuid: "smoothmenu1", //menu DIV id
    	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
    	classname: 'ddsmoothmenu', //class added to menu's outer DIV
    	//customtheme: ["#1c5a80", "#18374a"],
    	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
    })
}


/*
*
* pavennt 
* Call slide
*/
function  call_slide(){
    $("#amazon_scroller").amazon_scroller({
        scroller_title_show: 'disable',
        scroller_time_interval: '4000',
        scroller_window_background_color: "none",
        scroller_window_padding: '2',
        scroller_border_size: '0',
        scroller_border_color: '#CCC',
        scroller_images_width: '135',
        scroller_images_height: '90',
        scroller_title_size: '12',
        scroller_title_color: 'black',
        scroller_show_count: '5',
        directory: '_temp/mctourist/images' 
    }); 
}
function  call_slide_nn(){
    $("#amazon_scroller_nn").amazon_scroller({
        scroller_title_show: 'disable',
        scroller_time_interval: '4000',
        scroller_window_background_color: "none",
        scroller_window_padding: '2',
        scroller_border_size: '0',
        scroller_border_color: '#CCC',
        scroller_images_width: '135',
        scroller_images_height: '90',
        scroller_title_size: '12',
        scroller_title_color: 'black',
        scroller_show_count: '5',
        directory: '_temp/mctourist/images' 
    }); 
}
/*
* pavennt 
* Call actical tou
*
*/
function call_actical_tour(id_ul){
    //alert(id_ul);
    $(document).ready(function() {
	$("."+id_ul).accordion({
		accordion:false,
		speed: 500,
        closedSign:"[+]",
        openedSign: "[-]", 
		//closedSign: '<img src="images/down.gif"/>',
		//openedSign: '<img src="images/len.png"/>'
	});
});
    
}

/**
* pavennt
* Call slide
*
*/
function call_slide_galery(){
  
   $('#slide_galery').cycle({ 
    fx:    'scrollDown', 
    sync:   0, 
    delay: -2000 
 });
}

/**
*
*pavennt
* Call tab
*/
function call_tab(){
    $(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    
}

/**
 *
 * call lich
 *
 */
 function calllich(){
    Calendar.setup({
        inputField : "t_ngay",
        trigger    : "t_ngay",
        onSelect   : function() { this.hide() },
        showTime   : 12,
        dateFormat : "%d-%m-%Y"
       // dateFormat : "%Y-%m-%d %I:%M %p"
      });
}


/**
 * pavennt 
 * Call popup dat tour
 *
 */
function call_poup(){
    
    $(".dat_tuor").colorbox({width:"50%", inline:true, href:"#giaodien_dattour"});
}


function gettentuor(tentour){
    $('#tentuor').html(tentour); 
}


function callshowkh(){
    $(document).ready(function(){
       $("a[rel='hinhks']").colorbox(); 
    });
}